package com.wsj.servicebace.exceptionhandler;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data  //生成get，set方法
@AllArgsConstructor  //有参构造
@NoArgsConstructor   //无参构造

public class WsjException extends RuntimeException {

    @ApiModelProperty(value = "状态码")
    private Integer code;

    private String msg;//异常信息

}